Fixed regression in GtkImage size requests
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 9 Apr 2010 02:05:36 +0000 (22:05 -0400)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 9 Apr 2010 02:05:36 +0000 (22:05 -0400)
Fixed gtksizegroup.c:do_size_request() to never force an initial requisition
as some widgets expect it to remain unchanged across resizes (GtkImage
with pixbufs/filenames assigned is one of these cases).

gtk/gtksizegroup.c

index 245e0827fdf67bae18d74652e898481f76f9f4eb..b9ac3e2e9e07971f39385280e8cf654027dbc2eb 100644 (file)
@@ -670,8 +670,6 @@ do_size_request (GtkWidget *widget)
        * Note here that there is no convention of filling the argument or widget->requisition,
        * so we have no choice but to fire size request with this pointer.
        */
-      widget->requisition.width  = 0;
-      widget->requisition.height = 0;
       g_signal_emit_by_name (widget, "size-request", &widget->requisition);
 
       /* Now get the extended layout minimum and natural size